home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.uni-tuebingen.de!not-for-mail
- From: "Reinhard Katzmann" <Suamor@student.uni-tuebingen.de>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Boopsi shared Lib again
- Date: Sun, 07 Jan 1996 20:56:07 -0500
- Organization: Technische Informatik, Uni Tuebingen
- Distribution: world
- Message-ID: <68245038@informatik.uni-tuebingen.de>
- Reply-To: "suamor" <suamor@student.uni-tuebingen.de>
- NNTP-Posting-Host: gw192.informatik.uni-tuebingen.de
- X-NewsReader: IntuiNews 1.3a (7.9.95)
-
- Hi
-
- I meanwhile managed to get it to run partly. The problem described
- has been solved, adding the following lines before OSVERSION check:
-
- if (!bm) return NULL;
- if (!GfxBase) {
- GfxBase = ( struct GfxBase * )OpenLibrary( "graphics.library", 37 );
- if (!GfxBase) return NULL;
- mygfx=TRUE; /* Boolean for closing library again later */
- }
-
- It seems this function is called (only when I create a shared lib, link
- lib has worked fine here):
- - not by my program
- - before Gfx Library has been opened with bm=NULL :-(
-
- So this was the reason for the Enforcer hits & crashes. I still don't
- understand why the function is called at startup (when the Class is
- created). But for now I have a workaround.
-
- Now I have another problem: If I want to set a point in the draw area,
- normally a point is drawn and copied into my bitmap. But when I use
- the shared lib version the point is drawn and _afterwards_ the input
- device crashes :-(. I hope to find out why and most important where it
- happens exactly and let you know about it.
-
- - Reinhard Katzmann
-
- ---
- E-Mail: suamor@student.uni-tuebingen.de
-
- One day I hope to finish my RPS Pertergrin
- Concept for Pertergin (yet in german) avalaible on Request
- Current Amiga-Project: GuideTool (GUI) V1.1BETA
-
-